package com.ruoyi.project.system.erp.entity;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@NoArgsConstructor
@Data
public class MaterialResult {

    /**
     * state : 1
     * data : {"result":[{"material_id":"TEST104941","material_code":"010049001588","material_name":"锥形高强度水泥杆，230mm×12m×100kn.m","specification":null,"unit_price":10,"amount_money":10000,"amount_tax":100,"amount_total":10100,"quantity":1000,"unit":"根","delivery_date":"2017-06-09 00:00:00","project_code":"0411040001201611140101156430","project_name":"东门供电所板利乡定笔屯台区改造工程","eff_quantity":2,"eff_delivery_date":"2017-06-09 00:00:00","category_code":"00000000000536","project_type":2,"framwork_number":"GXKJZB2016005-016","technical_number":null,"yet_product_number":0,"yet_storage_number":0,"rownum_":1}],"row_total":1,"page_size":10,"current_page":1}
     * msg : 成功
     * ext : {}
     */

    @JSONField(name = "state")
    private int state;
    @JSONField(name = "data")
    private DataBean data;
    @JSONField(name = "msg")
    private String msg;
    @JSONField(name = "ext")
    private ExtBean ext;

    @NoArgsConstructor
    @Data
    public static class DataBean {
        /**
         * result : [{"material_id":"TEST104941","material_code":"010049001588","material_name":"锥形高强度水泥杆，230mm×12m×100kn.m","specification":null,"unit_price":10,"amount_money":10000,"amount_tax":100,"amount_total":10100,"quantity":1000,"unit":"根","delivery_date":"2017-06-09 00:00:00","project_code":"0411040001201611140101156430","project_name":"东门供电所板利乡定笔屯台区改造工程","eff_quantity":2,"eff_delivery_date":"2017-06-09 00:00:00","category_code":"00000000000536","project_type":2,"framwork_number":"GXKJZB2016005-016","technical_number":null,"yet_product_number":0,"yet_storage_number":0,"rownum_":1}]
         * row_total : 1
         * page_size : 10
         * current_page : 1
         */

        @JSONField(name = "row_total")
        private int rowTotal;
        @JSONField(name = "page_size")
        private int pageSize;
        @JSONField(name = "current_page")
        private int currentPage;
        @JSONField(name = "result")
        private List<ResultBean> result;

        @NoArgsConstructor
        @Data
        public static class ResultBean {
            /**
             * material_id : TEST104941
             * material_code : 010049001588
             * material_name : 锥形高强度水泥杆，230mm×12m×100kn.m
             * specification : null
             * unit_price : 10
             * amount_money : 10000
             * amount_tax : 100
             * amount_total : 10100
             * quantity : 1000
             * unit : 根
             * delivery_date : 2017-06-09 00:00:00
             * project_code : 0411040001201611140101156430
             * project_name : 东门供电所板利乡定笔屯台区改造工程
             * eff_quantity : 2
             * eff_delivery_date : 2017-06-09 00:00:00
             * category_code : 00000000000536
             * project_type : 2
             * framwork_number : GXKJZB2016005-016
             * technical_number : null
             * yet_product_number : 0
             * yet_storage_number : 0
             * rownum_ : 1
             */

            @JSONField(name = "material_id")
            private String materialId;
            @JSONField(name = "material_code")
            private String materialCode;
            @JSONField(name = "material_name")
            private String materialName;
            @JSONField(name = "specification")
            private Object specification;
            @JSONField(name = "unit_price")
            private int unitPrice;
            @JSONField(name = "amount_money")
            private int amountMoney;
            @JSONField(name = "amount_tax")
            private int amountTax;
            @JSONField(name = "amount_total")
            private int amountTotal;
            @JSONField(name = "quantity")
            private int quantity;
            @JSONField(name = "unit")
            private String unit;
            @JSONField(name = "delivery_date")
            private String deliveryDate;
            @JSONField(name = "project_code")
            private String projectCode;
            @JSONField(name = "project_name")
            private String projectName;
            @JSONField(name = "eff_quantity")
            private int effQuantity;
            @JSONField(name = "eff_delivery_date")
            private String effDeliveryDate;
            @JSONField(name = "category_code")
            private String categoryCode;
            @JSONField(name = "project_type")
            private int projectType;
            @JSONField(name = "framwork_number")
            private String framworkNumber;
            @JSONField(name = "technical_number")
            private Object technicalNumber;
            @JSONField(name = "yet_product_number")
            private int yetProductNumber;
            @JSONField(name = "yet_storage_number")
            private int yetStorageNumber;
            @JSONField(name = "rownum_")
            private int rownum;
        }
    }

    @NoArgsConstructor
    @Data
    public static class ExtBean {
    }
}

